package com.leps.nq.op.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 月度任务表
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Getter
@Setter
@TableName("op_monthly_task")
@ApiModel(value = "OpMonthlyTask对象", description = "月度任务表")
public class OpMonthlyTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("月度任务ID")
    @TableId(value = "monthly_task_id", type = IdType.AUTO)
    private Long monthlyTaskId;

    @ApiModelProperty("队伍ID")
    private Integer teamId;

    @ApiModelProperty("队伍名称")
    //@TableField(fill = FieldFill.INSERT)
    private String teamName;

    @ApiModelProperty("任务下达日期")
    private Date assignmentDate;

    @ApiModelProperty("任务年份")
    private Integer taskYear;

    @ApiModelProperty("任务月份")
    private Integer taskMonth;

    @ApiModelProperty("任务量")
    private BigDecimal taskGoal;

    @ApiModelProperty("已完成量")
    private BigDecimal completedValue;

    @ApiModelProperty("完成率")
    private BigDecimal completionRate;

    @ApiModelProperty("删除标志 (0存在 1删除)")
    @TableLogic
    private Integer delFlag;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建者")
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新者")
    private String updateBy;
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;


}
